<%= render 'public/flash_notice' %>
<%= render partial: 'public/errors', locals: { obj: @job } %>
<%= form_for [:cpanel, @job], html: { multipart: true, role: 'form'} do |f| %>

  <div class="form-group">
    <%= f.label :招聘语言 %>
    <%= f.select(:language, [['简体中文', 1], ['英文', 2], ['繁体中文', 3]], select: @job.language || 1) %>
  </div>
  <div class="form-group">
    <%= f.label :职位 %>
    <%= f.text_field :position, value: @job.position, class: 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.label :工作地点 %>
    <%= f.text_field :location, value: @job.location, class: 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.label :招聘人数 %>
    <%= f.text_field :num, value: @job.num,  class: 'form-control' %>
  </div>

  <div class="form-group">
    <%= f.label :内容 %>
    <%= f.text_area :content, value: @job.content, class: 'form-control', id: 'editor' %>
  </div>

  <%= f.submit '提交', class: 'btn btn-primary'%>
  <%= link_to '返回', cpanel_jobs_path, class: 'btn btn-default' %>

<% end %>
